@import "./variables.scss";
@import "./mixins.scss";
$accent: #e74c3c;

// $container_width: 800px;

body {
  background: darken($white, 5%);
  font-family: "proxima-nova-soft", sans-serif;
  font-size: 14px;
  @include font-smoothing;
}

.news-card {
  position: relative;
  z-index: 1;
  display: block;
  background: $white;
  min-width: 270px;
  @include box-shadow;
  @include transitions;
  &:hover {
    @include box-shadow($blur: 35px, $color: fade($black, 30%));
    .thumbnail {
      img {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        transform: scale(1.1);
        opacity: 0.6;
      }
    }
    .description{
      opacity: 1 !important;
      display: block !important;
    }
  }
  .thumbnail {
    height: 400px;
    overflow: hidden;
    .date {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 1;
      background: $accent;
      width: 55px;
      height: 55px;
      padding: 12.5px 0;
      @include border-radius(100%);
      color: $white;
      font-weight: 700;
      text-align: center;
      @include box-size;
      .day {
        font-size: 18px;
      }
      .month {
        font-size: 12px;
        text-transform: uppercase;
      }
    }
    img {
      display: block;
      width: 100%;
      @include transitions;
    }
    .category {
      position: absolute;
      top: 0;
      left: 0;
      background: $accent;
      padding: 10px 15px;
      color: $white;
      font-size: 14px;
      font-weight: 600;
      text-transform: uppercase;
    }
  }
  .post-content {
    position: absolute;
    bottom: 0;
    background: $white;
    width: 100%;
    padding: 30px;
    @include box-size;
    @include transitions($timing: cubic-bezier(0.37, 0.75, 0.61, 1.05));

    .title {
      margin: 0;
      padding: 0 0 10px;
      color: $dark_gray;
      font-size: 1.5em;
      font-weight: 700;
    }
    .description {
      display: none;
      opacity: 0;
      color: $gray;
      font-size: 14px;
      line-height: 1.8em;

      // @include transitions($timing: cubic-bezier(0.37, 0.75, 0.61, 1.05));
    }
    .post-meta {
      margin: 30px 0 0;
      color: $light_gray;
      .timestamp {
        margin: 0 16px 0 0;
      }
      a {
        color: $light_gray;
        text-decoration: none;
      }
    }
  }
}

.newsCard {
  width: 100%;

  @include box-size;
  float: left;
}
